package com.github.wisdom.member.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ccssoft.m8.common.ccssoft.modules.util.EntityWrapperHandle;
import com.ccssoft.m8.common.ccssoft.modules.util.PageUtils;
import com.ccssoft.m8.common.ccssoft.modules.util.Query;

import com.github.wisdom.member.dao.BatchAppmessageDao;
import com.github.wisdom.member.entity.BatchAppmessageEntity;
import com.github.wisdom.member.service.BatchAppmessageService;


@Service("batchAppmessageService")
public class BatchAppmessageServiceImpl extends ServiceImpl<BatchAppmessageDao, BatchAppmessageEntity> implements BatchAppmessageService<BatchAppmessageEntity> {

    @Override
    public PageUtils<BatchAppmessageEntity> queryPage(Map<String, Object> params) {
    	EntityWrapperHandle<BatchAppmessageEntity> ew = new EntityWrapperHandle<BatchAppmessageEntity>(params);
		Page<BatchAppmessageEntity> page = this.selectPage(new Query<BatchAppmessageEntity>(params).getPage(),ew);
		page.setTotal(this.selectCount(ew));
		return new PageUtils<BatchAppmessageEntity>(page);
    }
    @Override
    public List<BatchAppmessageEntity> queryPageByLike(Map<String, Object> params) {
    	return baseMapper.queryPageByLike(params);
    }
    

}
